let arr = [1,2,3,4]
let obj ={
    one:{s:null}
}
arr.map(item=>{
    if(item==1){
        obj.one.s = 'one'

    }else if(item==2){
        obj.two = 'two'
    }else{
        obj.other = item
    }
})
console.log(obj)

let str = '1313131(30.0%)111';
console.log(str.indexOf('('),str.lastIndexOf(')'))
let str2 = str.substring(str.indexOf('(')+1,str.lastIndexOf(')'))
console.log(str2)

let some = null;
console.log(!some)

let tpStr ='text.jpg';
console.log(tpStr.substr(tpStr.lastIndexOf('.')+1))

let aArr =['jpg','png']
let sawrw = 'jpg11'
let aboo = 0
aArr.map(item=>{
    if(item==sawrw){
        aboo=2
    }
})
console.log(aboo)

function ceshis(arr,str){
    let i = arr.length;
    while (i--){
        if(arr[i]==str){
            return true
        }
    }
    return false
}
console.log(ceshis(aArr,'jpg6'))

let ce = [1,2,3,4]
console.log(ce.toString('............'))